using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class SO_DiagnosisTypeMap : EntityTypeConfiguration<SO_DiagnosisType>
    {
        public SO_DiagnosisTypeMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.NAME)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("SO_DiagnosisType");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.NAME).HasColumnName("NAME");
        }
    }
}
